import request from '@/utils/request'
// 封装登录请求

export function login(data) {
  return request({
    url: '/sys/login', // 疑问? 跨域的前缀 /api
    data,
    method: 'post'
  })
}

/* 获取用户信息 */
export function getUserProfile() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}

export function logout() {

}
